package com.mode.decorator;

public class Trousers implements AbstractPerson {
    private AbstractPerson abstractPerson;

    public Trousers(AbstractPerson abstractPerson) {
        this.abstractPerson = abstractPerson;
    }

    @Override
    public void chengping() {
        abstractPerson.chengping();
        AddGreen();
    }

    private void AddGreen() {
        System.out.println("穿一件绿色的裤子");
    }
}
